$(function () {
    $("#back").on("click", function () {

        //获取当前网址，如： http://localhost:8083/uimcardprj/share/meun.jsp
        var curWwwPath=window.document.location.href;
        console.log("-------------------------->>>",curWwwPath)

        //获取主机地址之后的目录，如： uimcardprj/share/meun.jsp
        var pathName=window.document.location.pathname;
        console.log("-------------------------->>>",pathName)
        var pos=curWwwPath.indexOf(pathName);
        console.log("-------------------------->>>",pos)

        //获取主机地址，如： http://localhost:7070
        var localhostPath=curWwwPath.substring(0,pos);
        console.log("-------------------------->>>",localhostPath)

        //alert(localhostPaht);
        window.location.href = localhostPath +"/eve/list";

    });
})

	
	